package com.sz.mes.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;
import com.baomidou.mybatisplus.annotation.*;
import com.sz.mes.entity.BaseCustomEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 入库货格关联表 Entity定义
* @author hem
* @version 1.0
* @date 2023-05-25
* Copyright © szhs
*/
@Getter @Setter @Accessors(chain = true)
@TableName("instock_lattice")
public class InstockLattice extends BaseCustomEntity {
    private static final long serialVersionUID = 1398660174372178743L;

    /**
    * 入库 
    */
    @TableField()
    private Long instockId;

    /**
    * 货架格子 
    */
    @TableField()
    private Long warehouseLatticeId;

    /**
    * 商品 
    */
    @TableField()
    private Long goodsId;

    /**
    * 数量 
    */
    @TableField()
    private Integer quantity;

    /**
    * 具体位置 
    */
    @Length(max=100, message="具体位置长度应小于100")
    @TableField()
    private String label;

    /**
    * 创建人 
    */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
    * 更新人 
    */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /**
    * 更新时间 
    */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;


} 
